<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<title>管理员列表-WeAdmin Frame型后台管理系统-WeAdmin 1.0</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="../../static/css/font.css">
<link rel="stylesheet" href="../../static/css/weadmin.css">
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
	      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
	      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
	    <![endif]-->
</head>

<body>
	<div id="player" style="height: 600px;width: 1000px;"></div>
	<script src="../../static/js/qiniu-web-player-1.0.0.js" charset="utf-8"></script>
	<script src="../../lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript">
	function getParam(paramName) { 
	    paramValue = "", isFound = !1; 
	    if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) { 
	        arrSource = unescape(this.location.search).substring(1, this.location.search.length).split("&"), i = 0; 
	        while (i < arrSource.length && !isFound) arrSource[i].indexOf("=") > 0 && arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase() && (paramValue = arrSource[i].split("=")[1], isFound = !0), i++ 
	    } 
	    return paramValue == "" && (paramValue = null), paramValue 
	} 
	
	layui.extend({
		myHttp : '{/}../../static/js/myHttp'
	});
	layui.use(['jquery', 'myHttp'], function(){
		var myHttp = layui.myHttp;
		
		var uuid = getParam("uuid");
		
		myHttp.get("/hls/"+ uuid,null,function(res){
			var url = res.data;
			var container = document.getElementById("player");
       	    var player = new QPlayer({
       			url: url,
       			container: container,
       			autoplay: true,
       	    }) 
       	    
        });
	});

   
</script>
</body>

</html>